<?

class MySites
{
	public $ZoneType='user';
	public $is_administaror=false;
	public $db_charset='cp1251';
	
	
	function run()
	{
		global $riaZoneType;
		$riaZoneType = $this->ZoneType;
		
		session_start();
		
		# Preparsing
		$RewriteManager = new RewriteManager();
		$RewriteManager->run();
		
		$class='Dialog_'.$RewriteManager->target;
		$dialog = new $class;
		$dialog->RewriteManager = $RewriteManager;
		$dialog->handleRequest();
        
		session_write_close();
	}
}
?>